import http from './index.js'

// 搜索现有的数据集
export const getGather = data => {
  return http({
    method: 'get',
    url: 'get_datasets_info',
    params: data
  })
}

// 从s3下载数据集并返回给前端
export const downloadGather = data => {
  return http({
    method: 'get',
    url: 'download_dataset',
    params: data
  })
}

// 删除数据集
export const delGather = data => {
  return http({
    method: 'get',
    url: 'remove_dataset',
    params: data
  })
}

// 新建数据集
export const createGather = data => {
  return http({
    method: 'post',
    url: 'insert_dataset_info ',
    data: data
  })
}
